Skip to content

[9.2] [Fleet] only auto-install content packages newer than the installed version#262703

Merged
juliaElastic merged 3 commits into
elastic:9.2from
juliaElastic:backport-262509-to-9.2
Apr 13, 2026
Merged

[9.2] [Fleet] only auto-install content packages newer than the installed version#262703
juliaElastic merged 3 commits into
elastic:9.2from
juliaElastic:backport-262509-to-9.2

Conversation

@juliaElastic
Copy link
Copy Markdown
Contributor

Summary

Backport of #262509 to 9.2.

The auto-install content packages task was using string equality (!== version) to decide whether to reinstall a package. This meant any version mismatch would trigger a reinstall, effectively downgrading packages.

The fix replaces string equality with semverGt to ensure a package is only installed when the registry version is strictly newer than the installed version.

…ersion

Backport of elastic#262509 to 9.2

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@juliaElastic juliaElastic added the backport This PR is a backport of another PR label Apr 13, 2026
@botelastic botelastic Bot added the Team:Fleet Team label for Observability Data Collection Fleet team label Apr 13, 2026
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/fleet (Team:Fleet)

@macroscopeapp
Copy link
Copy Markdown
Contributor

macroscopeapp Bot commented Apr 13, 2026

Approvability

Verdict: Needs human review

This PR changes runtime behavior for Fleet's auto-install task by switching from exact version comparison to semver-based comparison, ensuring packages are only installed when newer than the current version. While the change is small and targeted, it alters when package installations occur in production, which warrants human review from the Fleet team.

You can customize Macroscope's approvability policy. Learn more.

Backport of elastic#262509 test changes to 9.2

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@juliaElastic juliaElastic enabled auto-merge (squash) April 13, 2026 08:51
@juliaElastic juliaElastic merged commit e1123a5 into elastic:9.2 Apr 13, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR Team:Fleet Team label for Observability Data Collection Fleet team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants